<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<title>AlphaAdmin</title>
	<link rel="stylesheet" type="text/css" href="../../assets/css/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="../../assets/css/bootstrap-table.min.css">
	<link rel="stylesheet" type="text/css" href="../../assets/css/iconfont.css">
	<link rel="stylesheet" type="text/css" href="../../assets/css/style.css">
	<!-- import CSS -->
	<link rel="stylesheet" href="https://cdn.staticfile.org/element-ui/2.15.9/theme-chalk/index.css">
</head>
<style>
	.el-form demo-ruleForm{
		width: 500px;
		margin: 0 auto;
	}
	#wrapper > div.page-wrapper > form{
		margin-left: 500px
	}
</style>
<body>
<div class="skin-default" id="wrapper">
	<header class="navbar-header">
		<div class="brand">
			<a class="navbar-brand" href="index.html" title="AlphaAdmin">报名系统后台管理</a>
		</div>
		<!--导航栏-->
		<div class="navbar">
			<i class="sidebar-toggle iconfont icon-menu" data-toggle="push-menu" role="button">
			</i>
			<div class="navbar-menu pull-right">
				<ul class="nav navbar-nav">
					<li class="dropdown message">
						<a class="dropdown-toggle" data-toggle="dropdown" href="#" title="消息">
							<i class="iconfont icon-email"></i>
							<span class="badge">4</span>
						</a>
						<ul class="dropdown-menu">
							<li class="header">
								您有4条消息
							</li>
							<li class="body">
								<ul class="menu">
									<li>
										<a href="#" title="如何设置头部head...">
											<div class="pull-left">
												<img class="img-circle" src="../../assets/avatars/avatars.png">
											</div>
											<h4 class="name">
												匿名用户
												<small class="pull-right">
													<i class="iconfont icon-time"></i>
													5分钟前
												</small>
											</h4>
											<p class="content">
												如何设置头部head的meta值
											</p>
										</a>
									</li>
									<li>
										<a href="#" title="如何设置头部head...">
											<div class="pull-left">
												<img class="img-circle" src="../../assets/avatars/avatars.png">
											</div>
											<h4 class="name">
												匿名用户
												<small class="pull-right">
													<i class="iconfont icon-time"></i>
													5分钟前
												</small>
											</h4>
											<p class="content">
												如何设置头部head的meta值
											</p>
										</a>
									</li>
									<li>
										<a href="#" title="如何设置头部head...">
											<div class="pull-left">
												<img class="img-circle" src="../../assets/avatars/avatars.png">
											</div>
											<h4 class="name">
												匿名用户
												<small class="pull-right">
													<i class="iconfont icon-time"></i>
													5分钟前
												</small>
											</h4>
											<p class="content">
												如何设置头部head的meta值
											</p>
										</a>
									</li>
									<li>
										<a href="#" title="如何设置头部head...">
											<div class="pull-left">
												<img class="img-circle" src="../../assets/avatars/avatars.png">
											</div>
											<h4 class="name">
												匿名用户
												<small class="pull-right">
													<i class="iconfont icon-time"></i>
													5分钟前
												</small>
											</h4>
											<p class="content">
												如何设置头部head的meta值
											</p>
										</a>
									</li>
								</ul>
							</li>
							<li class="footer">
								<a href="#" title="查看所有消息">
									查看所有消息
								</a>
							</li>
						</ul>
					</li>
					<li class="dropdown notify">
						<a class="dropdown-toggle" data-toggle="dropdown" href="#" title="通知">
							<i class="iconfont icon-bells"></i>
							<span class="badge">7</span>
						</a>
						<ul class="dropdown-menu">
							<li class="header">
								您有7个通知
							</li>
							<li class="body">
								<ul class="menu">
									<li>
										<a class="text-danger" href="#" title="系统发生一个未知错误">
											<i class="iconfont icon-error pull-left"></i>
											<p class="content">发生一个系统路径错误</p>
										</a>
									</li>
									<li>
										<a class="text-warning" href="#" title="系统发出一个警告">
											<i class="iconfont icon-alert pull-left"></i>
											<p class="content">为安全起见,请删除install文件夹</p>
										</a>
									</li>
									<li>
										<a class="text-success" href="#" title="修改成功">
											<i class="iconfont icon-ok pull-left"></i>
											<p class="content">您更新了个人资料</p>
										</a>
									</li>
									<li>
										<a class="text-info" href="#" title="新成员">
											<i class="iconfont icon-menu-user pull-left"></i>
											<p class="content">3位新成员</p>
										</a>
									</li>
									<li>
										<a class="text-muted" href="#" title="点赞">
											<i class="iconfont icon-thumbs-up pull-left"></i>
											<p class="content">5个点赞</p>
										</a>
									</li>
								</ul>
							</li>
							<li class="footer">
								<a href="#" title="查看所有通知">
									查看所有通知
								</a>
							</li>
						</ul>
					</li>
					<li class="dropdown user">
						<a class="dropdown-toggle" data-toggle="dropdown" href="#" title="用户">AlphaAdmin</a>
						<ul class="dropdown-menu">
							<li>
								<a data-toggle="modal" data-target=".menu-setpassword" href="#" title="个人信息">
									<i class="iconfont icon-menu-user"></i>
									修改密码
								</a>
							</li>
							<li>
								<a href="#" title="系统设置">
									<i class="iconfont icon-setting"></i>
									系统设置
								</a>
							</li>
							<li class="divider"></li>
							<li>
								<a data-toggle="modal" data-target=".menu-logout" href="#" title="登出">
									<i class="iconfont icon-power"></i>
									登出
								</a>
							</li>
						</ul>
					</li>
				</ul>
			</div>
		</div>
	</header>
	<!-- 左侧导航 -->
	<aside class="main-sidebar">
		<div class="user-panel">
			<div class="image pull-left">
				<!--双向绑定用户的头像-->
				<img src="../../assets/avatars/avatars.png" alt="">
			</div>
			<div class="info pull-right">
				<!--双向绑定一个用户名和昵称-->
				<p class="title">admin</p>
				<strong>超级管理员</strong>
			</div>
		</div>
		<section class="sidebar">
			<ul class="sidebar-menu" data-widget="tree">
				<li class="active">
					<a href="../../index.html" title="仪表盘">
						<i class="iconfont icon-dashborad"></i>
						<small>首页</small>
					</a>
				</li>
				<li class="treeview">
					<a href="#" title="考试管理">
						<i class="iconfont icon-chart"></i>
						<small>考试管理</small>
						<span class=" pull-right">
								<i class="iconfont icon-menu-left-small"></i>
							</span>
					</a>
					<ul class="treeview-menu">
						<li>
							<a href="../../pages/examination/addNewExam.html">
								<i class="iconfont icon-circle-hollow"></i>
								<small>添加考试</small>
							</a>
						</li>
						<li>
							<a href="../../pages/examination/manageExam.html">
								<i class="iconfont icon-circle-hollow"></i>
								<small>管理考试</small>
							</a>
						</li>
					</ul>
				</li>
				<li class="treeview">
					<a href="#" title="考生管理">
						<i class="iconfont icon-form"></i>
						<small>考生管理</small>
						<span class=" pull-right">
								<i class="iconfont icon-menu-left-small"></i>
							</span>
					</a>
					<ul class="treeview-menu">
						<li>
							<a href="../../pages/examinee/addNewStudent.html">
								<i class="iconfont icon-circle-hollow"></i>
								<small>添加考生</small>
							</a>
						</li>
						<li>
							<a href="../../pages/examinee/manageStudent.html">
								<i class="iconfont icon-circle-hollow"></i>
								<small>考生信息</small>
							</a>
						</li>

					</ul>
				</li>
				<li class="treeview">
					<a href="#" title="公告管理">
						<i class="iconfont icon-components"></i>
						<small>公告管理</small>
						<span class=" pull-right">
								<i class="iconfont icon-menu-left-small"></i>
							</span>
					</a>
					<ul class="treeview-menu">
						<li>
							<a href="../../pages/annManagement/addNewAnn.html">
								<i class="iconfont icon-circle-hollow"></i>
								<small>添加公告</small>
							</a>
						</li>
						<li>
							<a href="../../pages/annManagement/manageAnn.html">
								<i class="iconfont icon-circle-hollow"></i>
								<small>管理公告</small>
							</a>
						</li>

					</ul>
				</li>
				<li class="treeview">
					<a href="#">
						<i class="iconfont icon-table"></i>
						<small>首页轮播图</small>
						<span class=" pull-right">
								<i class="iconfont icon-menu-left-small"></i>
							</span>
					</a>
					<ul class="treeview-menu">
						<li>
							<a href="">
								<i class="iconfont icon-circle-hollow"></i>
								<small>修改轮播图</small>
							</a>
						</li>

					</ul>
				</li>

			</ul>
		</section>
	</aside>
	<div class="page-wrapper">
		<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm" >
			<el-form-item label="活动名称" prop="name" style="width: 500px">
				<el-input v-model="ruleForm.name"></el-input>
			</el-form-item>
			<el-form-item label="活动区域" prop="region">
				<el-select v-model="ruleForm.region" placeholder="请选择活动区域">
					<el-option label="区域一" value="shanghai"></el-option>
					<el-option label="区域二" value="beijing"></el-option>
				</el-select>
			</el-form-item>
			<el-form-item label="活动时间" required style="width: 500px">
				<el-col :span="11">
					<el-form-item prop="date1">
						<el-date-picker type="date" placeholder="选择日期" v-model="ruleForm.date1" style="width: 100%;"></el-date-picker>
					</el-form-item>
				</el-col>
				<el-col class="line" :span="2">-</el-col>
				<el-col :span="11">
					<el-form-item prop="date2">
						<el-time-picker placeholder="选择时间" v-model="ruleForm.date2" style="width: 100%;"></el-time-picker>
					</el-form-item>
				</el-col>
			</el-form-item>
			<el-form-item label="即时配送" prop="delivery">
				<el-switch v-model="ruleForm.delivery"></el-switch>
			</el-form-item>
			<el-form-item label="活动性质" prop="type">
				<el-checkbox-group v-model="ruleForm.type">
					<el-checkbox label="美食/餐厅线上活动" name="type"></el-checkbox>
					<el-checkbox label="地推活动" name="type"></el-checkbox>
					<el-checkbox label="线下主题活动" name="type"></el-checkbox>
					<el-checkbox label="单纯品牌曝光" name="type"></el-checkbox>
				</el-checkbox-group>
			</el-form-item>
			<el-form-item label="特殊资源" prop="resource">
				<el-radio-group v-model="ruleForm.resource">
					<el-radio label="线上品牌商赞助"></el-radio>
					<el-radio label="线下场地免费"></el-radio>
				</el-radio-group>
			</el-form-item>
			<el-form-item label="活动形式" prop="desc" style="width: 500px" >
				<el-input type="textarea" v-model="ruleForm.desc"></el-input>
			</el-form-item>
			<el-form-item>
				<el-button type="primary" @click="submitForm('ruleForm')">立即创建</el-button>
				<el-button @click="resetForm('ruleForm')">重置</el-button>
			</el-form-item>
		</el-form>
	</div>
	<!-- 修改密码模态框 -->
	<div class="modal fade menu-setpassword" tabindex="-1" role="dialog">
		<div class="modal-dialog modal-sm" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title">修改密码</h4>
				</div>
				<div class="modal-body">
					<table class="table">
						<tbody>
						<tr>
							<th>
								旧密码
							</th>
							<td>
								<input type="text" class="form-control" placeholder="请输入旧密码" name="js-oldPassword">
							</td>
						</tr>
						<tr>
							<th>
								新密码
							</th>
							<td>
								<input type="text" class="form-control" placeholder="请输入新密码" name="js-newPassword">
							</td>
						</tr>
						<tr>
							<th>
								确认密码
							</th>
							<td>
								<input type="text" class="form-control" placeholder="请再次输入新密码" name="js-verifyPassword">
							</td>
						</tr>
						</tbody>
					</table>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-primary">保存</button>
				</div>
			</div>
		</div>
	</div>
	<!-- 退出提示模态框 -->
	<div class="modal fade menu-logout" tabindex="-1" role="dialog">
		<div class="modal-dialog modal-sm" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
						<span aria-hidden="true">&times;</span>
					</button>
					<h4 class="modal-title">提示</h4>
				</div>
				<div class="modal-body">
					<p>是否确定退出</p>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
					<button type="button" class="btn btn-primary">登出</button>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript" src="../../assets/js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="../../assets/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="../../assets/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../../assets/libs/tinymce/tinymce.min.js"></script>
<script type="text/javascript" src="../../assets/js/Chart.min.js"></script>
<script type="text/javascript" src="../../assets/js/echarts.min.js"></script>
<script type="text/javascript" src="../../assets/js/alpha.js"></script>
<script type="text/javascript" src="../../assets/js/dashboard.js"></script>
<style>
	.copyrights{text-indent:-9999px;height:0;line-height:0;font-size:0;overflow:hidden;}
</style>
<div class="copyrights" id="links20210126">
	Collect from <a href="http://www.cssmoban.com/"  title="网站模板">模板之家</a>
	<a href="https://www.chazidian.com/"  title="查字典">查字典</a>
</div>
<!--引入axios和vue框架文件-->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
<!-- import JavaScript -->
<script src="https://cdn.staticfile.org/element-ui/2.15.9/index.min.js"></script>
<script>
	let v = new Vue({
		el:"body>div",
		data:{
			ruleForm: {
				name: '',
				region: '',
				date1: '',
				date2: '',
				delivery: false,
				type: [],
				resource: '',
				desc: ''
			},
			rules: {
				name: [
					{ required: true, message: '请输入活动名称', trigger: 'blur' },
					{ min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
				],
				region: [
					{ required: true, message: '请选择活动区域', trigger: 'change' }
				],
				date1: [
					{ type: 'date', required: true, message: '请选择日期', trigger: 'change' }
				],
				date2: [
					{ type: 'date', required: true, message: '请选择时间', trigger: 'change' }
				],
				type: [
					{ type: 'array', required: true, message: '请至少选择一个活动性质', trigger: 'change' }
				],
				resource: [
					{ required: true, message: '请选择活动资源', trigger: 'change' }
				],
				desc: [
					{ required: true, message: '请填写活动形式', trigger: 'blur' }
				]
			}
		},
		methods:{
			submitForm(formName) {
				this.$refs[formName].validate((valid) => {
					if (valid) {
						alert('submit!');
					} else {
						console.log('error submit!!');
						return false;
					}
				});
			},
			resetForm(formName) {
				this.$refs[formName].resetFields();
			}

		}

	})
</script>
</body>
</html>